﻿@model Guan.CMS.Web.ViewModels.Page.AboutusViewModel
@{
    ViewBag.Title = "关于我们";
    ViewBag.SectionTitleImage = "ico-content.png";
}
@using (Html.BeginForm())
{
    <div class="section-header">
        <div class="title">
            @if (ViewBag.SectionTitleImage != null)
            {
                <img src="@Url.Content("~/Content/Images/Admin/" + ViewBag.SectionTitleImage)" alt="" />
            }
            @ViewBag.Title
        </div>
        <div class="options">
            <input type="submit" value="保存" class="k-button"/>
            @Html.ActionLink("取消","Aboutus","Page",null,new{@class="k-button"})
        </div>
    </div>
    <div class="section-body">
        @(Html.Kendo().Editor().Name("Content")
                      .Tools(tools => tools
                                          .SubScript()
                                          .SuperScript()
                                          .ViewHtml()
                      )
                      .HtmlAttributes(new{style="height:400px;"})
                      .Value(Model.Content)
                      .ImageBrowser(imageBrower => imageBrower
                                                       .Image("~/Uploadfiles/Images/{0}")
                                                       .Read("Read", "ImageBrowser")
                                                       .Create("Create", "ImageBrowser")
                                                       .Destroy("Destroy", "ImageBrowser")
                                                       .Upload("Upload", "ImageBrowser")
                                                       .Thumbnail("Thumbnail", "ImageBrowser")))
    </div>
}